<?php
/**
 * 文件名 : api_site.php
 * @User wuqin
 * @DateTime 2018-03-13 14:19
 */
class Api_site extends CI_Controller
{
    /**
     * Api_site constructor.
     */
    function __construct()
    {
        parent::__construct();
        date_default_timezone_set('PRC');
        header("Content-Type: application/json; charset=utf-8");
        if (!isset($_SESSION)) {
            session_start();
        }
    }

    public function test()
    {
        exit_json_array(1,"test");
    }
}